﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace WikiTrailCreator.TrailData
{
    public class WikiPage
    {
        protected string viewURL = "";
        protected string editURL = "";
        protected string name = "";
        protected string pageWikiCode = "";

        public WikiPage(string name, string pageWikiCode, string viewURL, string editURL)
        {
            this.name = name;
            this.pageWikiCode = pageWikiCode;
            this.viewURL = viewURL;
            this.editURL = editURL;
        }

        public string Name
        {
            get { return name; }
        }

        public string PageWikiCode
        {
            get { return pageWikiCode; }
            set { pageWikiCode = value; }
        }

        public override string ToString()
        {
            return name;
        }

        public string URLForViewing
        {
            get { return viewURL; }
        }

        public string URLForEditing
        {
            get { return editURL; }
        }
    }

    public class PhotoWikiPage : WikiPage
    {
        protected string localImagePath;
        protected string uploadURL;

        public PhotoWikiPage(string name, string pageWikiCode, string viewURL, string editURL, string uploadURL, string localImagePath)
            : base(name, pageWikiCode, viewURL, editURL)
        {
            this.localImagePath = localImagePath;
            this.uploadURL = uploadURL;
        }

        public string LocalImagePath
        {
            get
            {
                return localImagePath;
            }
        }

        public string URLForUploading
        {
            get { return uploadURL; }
        }
    }
}
